package tests.view_generation;

import es.upm.gib.mappingAPI2.View;
import es.upm.gib.mappingAPI2.generate.PhysicalViewGenerator;
import es.upm.gib.owlbasicmodel2.OWLBasicModel2;

import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Alberto
 * Date: 6/08/13
 * Time: 12:09
 * To change this template use File | Settings | File Templates.
 */
public class TestDicom {

    public static void main(String args[]) {
        try {
            OWLBasicModel2 model = OWLBasicModel2.parseFile(".\\etc\\view_generation_samples\\fixed_dicom\\example_dicom_header.owl");

            PhysicalViewGenerator physicalViewGenerator = new PhysicalViewGenerator(model, true);

            System.out.println("begin...");
            physicalViewGenerator.specifyView();
            physicalViewGenerator.specifyView();
            View view = physicalViewGenerator.currentView();
            while (view != null) {
                System.out.println(view);
                physicalViewGenerator.acceptView();
                view = physicalViewGenerator.currentView();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
